package org.geektimes.projects.user.jmx.mbean;

/**
 * @author tom
 * @since 2021/3/14 13:26
 */
public class Test implements TestMBean{

    private final User user;

    public Test(User user){
        this.user = user;
    }

    @Override
    public String getName() {
        return user.getName();
    }

    @Override
    public void setName(String name) {
        this.user.setName(name);
    }

    @Override
    public void print(){
        System.out.println(getName());
    }
}
